gtk4.git
8 years agogl renderer: Insert render target op in render_texture path
Timm Bäder [Wed, 27 Dec 2017 22:15:07 +0000 (23:15 +0100)]
gl renderer: Insert render target op in render_texture path

8 years agotestoutsetshadowdrawing: Add adwaita CSD window test case
Timm Bäder [Mon, 25 Dec 2017 22:17:08 +0000 (23:17 +0100)]
testoutsetshadowdrawing: Add adwaita CSD window test case

8 years agotestsuite: Add selected gl renderer test node files
Timm Bäder [Mon, 25 Dec 2017 11:56:21 +0000 (12:56 +0100)]
testsuite: Add selected gl renderer test node files

8 years agotestheaderbar: Fix custom CSS
Timm Bäder [Sun, 24 Dec 2017 15:27:54 +0000 (16:27 +0100)]
testheaderbar: Fix custom CSS

8 years agoAdwaita: Avoid expander<>combobox interference
Matthias Clasen [Thu, 28 Dec 2017 13:39:29 +0000 (08:39 -0500)]
Adwaita: Avoid expander<>combobox interference

Putting a combobox in an expander was causing the combo arrow
to go sideways. Increase the specificity with which we address
the expander arrow to avoid that.

8 years agofontchooser: Add global keynav
Matthias Clasen [Wed, 27 Dec 2017 22:21:30 +0000 (17:21 -0500)]
fontchooser: Add global keynav

Starting to type should focus the search entry and start
a search.

8 years agoTry again to make the a11y tests pass
Matthias Clasen [Wed, 27 Dec 2017 12:08:17 +0000 (07:08 -0500)]
Try again to make the a11y tests pass

8 years agoAdd an unrealize function to GtkLabel
Matthias Clasen [Wed, 27 Dec 2017 04:32:49 +0000 (23:32 -0500)]
Add an unrealize function to GtkLabel

We need to drpo the primary clipboard when the label
is getting unrealized while holding it. This fixes
a crash in the accessibility-dump test.

8 years agoFix the a11y tests
Matthias Clasen [Wed, 27 Dec 2017 04:16:18 +0000 (23:16 -0500)]
Fix the a11y tests

8 years agoFix the textbuffer test
Matthias Clasen [Wed, 27 Dec 2017 04:15:30 +0000 (23:15 -0500)]
Fix the textbuffer test

The test was assuming that gtk_text_buffer_paste_clipboard is
synchronous, which is no longer the case.

8 years agoSimplify ui files
Matthias Clasen [Wed, 27 Dec 2017 04:12:37 +0000 (23:12 -0500)]
Simplify ui files

Run gtk3-builder-tool simplify over all our ui files.

8 years agoUpdate NEWS
Matthias Clasen [Tue, 26 Dec 2017 19:40:59 +0000 (14:40 -0500)]
Update NEWS

8 years agoFix objects-finalize test
Matthias Clasen [Wed, 27 Dec 2017 01:10:34 +0000 (20:10 -0500)]
Fix objects-finalize test

This test needs similar fixes to the notify test to
pass a display to GDK objects when instantiating them.

8 years agoFix notify test
Matthias Clasen [Wed, 27 Dec 2017 01:05:07 +0000 (20:05 -0500)]
Fix notify test

We need to pass a display when creating more GDK objects now.

8 years agoAvoid excess notification for GdkEventControllerScroll::flags
Matthias Clasen [Wed, 27 Dec 2017 01:04:07 +0000 (20:04 -0500)]
Avoid excess notification for GdkEventControllerScroll::flags

We have a test that checks this, and it is the right thing to do.

8 years agoAvoid excess notification for GdkCellRendererPixbuf::icon-size
Matthias Clasen [Wed, 27 Dec 2017 01:03:19 +0000 (20:03 -0500)]
Avoid excess notification for GdkCellRendererPixbuf::icon-size

We have a test that checks this, and it is right thing to do.

8 years agoRemove a duplicate doc comment
Matthias Clasen [Wed, 27 Dec 2017 00:18:45 +0000 (19:18 -0500)]
Remove a duplicate doc comment

g-ir-scanner complains about this.

8 years agogdk: Cosmetic rewording of draw context docs
Matthias Clasen [Tue, 26 Dec 2017 19:10:54 +0000 (14:10 -0500)]
gdk: Cosmetic rewording of draw context docs

Avoid draw context <> drawing context confusion,
as far as possible.

8 years agogdk: Slight doc rearrangement
Matthias Clasen [Tue, 26 Dec 2017 19:06:52 +0000 (14:06 -0500)]
gdk: Slight doc rearrangement

Mainly, add GdkDrawContext to the docs.

8 years agowindow: Remove GtkButton reference from docs
Matthias Clasen [Tue, 26 Dec 2017 19:06:17 +0000 (14:06 -0500)]
window: Remove GtkButton reference from docs

GtkButton doesn't have its own window anymore, so it is
a misleading example here.

8 years agodisplay: Cosmetic doc changes
Matthias Clasen [Tue, 26 Dec 2017 19:05:00 +0000 (14:05 -0500)]
display: Cosmetic doc changes

8 years agocursor docs: Point to gtk_widget_set_cursor
Matthias Clasen [Tue, 26 Dec 2017 19:04:33 +0000 (14:04 -0500)]
cursor docs: Point to gtk_widget_set_cursor

This is the right API to use for applications.

8 years agoAdd documentation for content (de)serializers
Matthias Clasen [Tue, 26 Dec 2017 19:04:12 +0000 (14:04 -0500)]
Add documentation for content (de)serializers

8 years agoDocument GdkClipboard::changed
Matthias Clasen [Tue, 26 Dec 2017 19:03:30 +0000 (14:03 -0500)]
Document GdkClipboard::changed

8 years agoDocument more structs
Matthias Clasen [Tue, 26 Dec 2017 19:39:24 +0000 (14:39 -0500)]
Document more structs

8 years agoDocument GDK_DISPLAY_XDISPLAY
Matthias Clasen [Tue, 26 Dec 2017 17:53:20 +0000 (12:53 -0500)]
Document GDK_DISPLAY_XDISPLAY

8 years agogdk: Document GdkVulkanContext
Matthias Clasen [Tue, 26 Dec 2017 17:46:46 +0000 (12:46 -0500)]
gdk: Document GdkVulkanContext

New API needs documentation.

8 years agogdk: Move GdkWindowState enum around
Matthias Clasen [Tue, 26 Dec 2017 16:47:15 +0000 (11:47 -0500)]
gdk: Move GdkWindowState enum around

We no longer have an event for this, so move the
enum to gdkwindow.h, where it belongs.

8 years agoMore documentation additions
Matthias Clasen [Tue, 26 Dec 2017 16:34:18 +0000 (11:34 -0500)]
More documentation additions

8 years agoDrop gratitious use of GdkPoint
Matthias Clasen [Tue, 26 Dec 2017 16:30:37 +0000 (11:30 -0500)]
Drop gratitious use of GdkPoint

This is the only use of this undocumented struct,
and it does not make this code any better. Just drop it.

8 years agoSome GdkMonitor documentation additions
Matthias Clasen [Tue, 26 Dec 2017 16:19:24 +0000 (11:19 -0500)]
Some GdkMonitor documentation additions

Document the ::invalidated signal.

8 years agoRemove leftover API from headers
Matthias Clasen [Tue, 26 Dec 2017 16:01:38 +0000 (11:01 -0500)]
Remove leftover API from headers

gdk_window_mark_paint_from_clip was removed in
bddfd7bb41cebd9b4e8ea418ce4d8e1f11822e81

8 years agoDocument new event getters
Matthias Clasen [Tue, 26 Dec 2017 15:59:38 +0000 (10:59 -0500)]
Document new event getters

New API needs documentation.

8 years agoTry to make the docs build more quiet
Matthias Clasen [Tue, 26 Dec 2017 15:30:50 +0000 (10:30 -0500)]
Try to make the docs build more quiet

Not sure if this really makes a difference.

8 years agogdk: Remove the event structs from the documentation
Matthias Clasen [Tue, 26 Dec 2017 15:22:21 +0000 (10:22 -0500)]
gdk: Remove the event structs from the documentation

No longer public api.

8 years agoDocument gdk_display_get_setting
Matthias Clasen [Tue, 26 Dec 2017 15:21:45 +0000 (10:21 -0500)]
Document gdk_display_get_setting

New api needs documentation.

8 years agoRemove leftover gdk_event_request_motions from headers
Matthias Clasen [Tue, 26 Dec 2017 15:05:09 +0000 (10:05 -0500)]
Remove leftover gdk_event_request_motions from headers

The implementation of this function was removed in
44cb3ccfa15d6f840b34f916d733ea393a1620a2.

8 years agoDrop gsk_renderer_get/set_viewport from the docs
Matthias Clasen [Tue, 26 Dec 2017 14:44:52 +0000 (09:44 -0500)]
Drop gsk_renderer_get/set_viewport from the docs

These no longer exist.

8 years agogdk: Document GdkDisplay::setting-changed
Matthias Clasen [Tue, 26 Dec 2017 14:30:44 +0000 (09:30 -0500)]
gdk: Document GdkDisplay::setting-changed

New api needs documentation.

8 years agoSome migration guide revisions
Matthias Clasen [Tue, 26 Dec 2017 14:30:07 +0000 (09:30 -0500)]
Some migration guide revisions

Add a few things, reword some others.

8 years agodocs: Add new headerbar api
Matthias Clasen [Tue, 26 Dec 2017 14:01:57 +0000 (09:01 -0500)]
docs: Add new headerbar api

Some functions have been renamed here.

8 years agoAdd GtkIconSize back to the docs
Matthias Clasen [Tue, 26 Dec 2017 13:39:29 +0000 (08:39 -0500)]
Add GtkIconSize back to the docs

And document how it works now.

8 years agogdk: Reshuffle docs slightly
Matthias Clasen [Mon, 25 Dec 2017 21:40:47 +0000 (16:40 -0500)]
gdk: Reshuffle docs slightly

Deemphasize GdkPixbuf in the docs.

8 years agodocs: Fix the build of gdk4 documentation
Ting-Wei Lan [Sun, 24 Dec 2017 16:14:05 +0000 (00:14 +0800)]
docs: Fix the build of gdk4 documentation

https://bugzilla.gnome.org/show_bug.cgi?id=791926

8 years agocheck button: Fix inconsistent state
Matthias Clasen [Mon, 25 Dec 2017 16:27:16 +0000 (11:27 -0500)]
check button: Fix inconsistent state

This has been broken since the inconsistent state
was moved here in 2aea8dfee97b.

8 years agogdk/broadway/toarray.pl: Don't hard-code the path of perl
Ting-Wei Lan [Sun, 24 Dec 2017 16:24:04 +0000 (00:24 +0800)]
gdk/broadway/toarray.pl: Don't hard-code the path of perl

https://bugzilla.gnome.org/show_bug.cgi?id=791927

8 years agoFix the docs build
Matthias Clasen [Sat, 23 Dec 2017 03:59:00 +0000 (22:59 -0500)]
Fix the docs build

We no longer have GtkClipboard.

8 years agocss: Document font-variant and subproperties
Matthias Clasen [Sat, 23 Dec 2017 03:56:35 +0000 (22:56 -0500)]
css: Document font-variant and subproperties

Add the CSS font level 3 properties that we support now
to the docs.

8 years agoUpdate annotations for GdkDisplay
Emmanuele Bassi [Thu, 21 Dec 2017 19:13:28 +0000 (19:13 +0000)]
Update annotations for GdkDisplay

GdkDisplay is missing various annotations, and the introspection scanner
is complaining about it.

8 years agoUpdate annotations for GdkEvent API
Emmanuele Bassi [Thu, 21 Dec 2017 19:07:02 +0000 (19:07 +0000)]
Update annotations for GdkEvent API

The GdkEvent API is missing some gtk-doc stanzas, as well as some
introspection annotations.

8 years agodocs: Add missing signal parameter
Emmanuele Bassi [Thu, 21 Dec 2017 19:00:28 +0000 (19:00 +0000)]
docs: Add missing signal parameter

The `flags` parameter is missing, and the introspection scanner is
complaining about it.

8 years agobuild: Ensure we introspect the print operation sources
Emmanuele Bassi [Thu, 21 Dec 2017 18:57:25 +0000 (18:57 +0000)]
build: Ensure we introspect the print operation sources

The documentation and annotations for some of the print API is defined
in platform-specific source files, so we need to ensure we're passing
those files to the introspection scanner in order to avoid warnings, and
to get the appropriate introspected API.

8 years agoAnnotate gdk_x11_display_get_screen()
Emmanuele Bassi [Thu, 21 Dec 2017 18:49:25 +0000 (18:49 +0000)]
Annotate gdk_x11_display_get_screen()

We're missing the gtk-doc stanza, as well as the transfer annotation for
the returned pointer.

8 years agoRemove unnecessary introspection annotation
Emmanuele Bassi [Thu, 21 Dec 2017 18:46:08 +0000 (18:46 +0000)]
Remove unnecessary introspection annotation

Transfer annotations do not apply to integral types.

8 years agobroadway: Use correct type in assignment
Emmanuele Bassi [Thu, 21 Dec 2017 18:42:26 +0000 (18:42 +0000)]
broadway: Use correct type in assignment

The new type propagation for g_object_ref() is raising a compiler
warning for an assignment with a different type.

8 years agowidgetbowl: Add blurred box shadow demo
Timm Bäder [Thu, 21 Dec 2017 17:33:41 +0000 (18:33 +0100)]
widgetbowl: Add blurred box shadow demo

8 years agogl renderer: try doing outset box shadows
Timm Bäder [Thu, 21 Dec 2017 17:09:32 +0000 (18:09 +0100)]
gl renderer: try doing outset box shadows

Still fall back in cases we can't handle that way.

8 years agotests: Add outset shadow drawing test
Timm Bäder [Thu, 21 Dec 2017 16:57:16 +0000 (17:57 +0100)]
tests: Add outset shadow drawing test

8 years agogl renderer: Remove unused vertex shader
Timm Bäder [Tue, 19 Dec 2017 21:35:55 +0000 (22:35 +0100)]
gl renderer: Remove unused vertex shader

8 years agogl renderer: Don't crash if the first op is an opacity one
Timm Bäder [Tue, 19 Dec 2017 15:00:43 +0000 (16:00 +0100)]
gl renderer: Don't crash if the first op is an opacity one

8 years agogl renderer: Force cross-fade nodes offscreen
Timm Bäder [Tue, 19 Dec 2017 11:45:32 +0000 (12:45 +0100)]
gl renderer: Force cross-fade nodes offscreen

8 years agogl renderer: Use one function per op type to apply data
Timm Bäder [Sat, 16 Dec 2017 09:02:03 +0000 (10:02 +0100)]
gl renderer: Use one function per op type to apply data

8 years agogl renderer: Don't leak gl resources
Timm Bäder [Sat, 16 Dec 2017 01:37:03 +0000 (02:37 +0100)]
gl renderer: Don't leak gl resources

8 years agoshowrendernode: Show at least the root node bounds
Timm Bäder [Mon, 11 Dec 2017 09:02:13 +0000 (10:02 +0100)]
showrendernode: Show at least the root node bounds

8 years agogl renderer: Fix indentation mishap
Timm Bäder [Mon, 11 Dec 2017 07:22:54 +0000 (08:22 +0100)]
gl renderer: Fix indentation mishap

8 years agogl renderer: Implement cross fade nodes
Timm Bäder [Mon, 11 Dec 2017 07:22:28 +0000 (08:22 +0100)]
gl renderer: Implement cross fade nodes

8 years agogl renderer: Fix linear gradient shader color calculation
Timm Bäder [Sun, 10 Dec 2017 21:27:21 +0000 (22:27 +0100)]
gl renderer: Fix linear gradient shader color calculation

This fixes both the wrong headerbar color and the broken border color in
of the circular button in the widget-factory.

8 years agogl renderer: Only take glyph texture alpha into account
Timm Bäder [Sat, 9 Dec 2017 17:31:28 +0000 (18:31 +0100)]
gl renderer: Only take glyph texture alpha into account

This way, we can use the very same coloring program to draw text shadows
of fonts with colored glyphs.

8 years agogl renderer: Fix shadow nodes if the child is a container
Timm Bäder [Sat, 9 Dec 2017 17:26:29 +0000 (18:26 +0100)]
gl renderer: Fix shadow nodes if the child is a container

8 years agogl renderer: Move declarations to the beginning of the block
Timm Bäder [Sat, 9 Dec 2017 15:21:19 +0000 (16:21 +0100)]
gl renderer: Move declarations to the beginning of the block

8 years agogl renderer: Fix use of uninitialized values
Timm Bäder [Sat, 9 Dec 2017 13:32:24 +0000 (14:32 +0100)]
gl renderer: Fix use of uninitialized values

8 years agogl renderer: Ensure texture sizes arent 0
Timm Bäder [Sat, 9 Dec 2017 13:31:10 +0000 (14:31 +0100)]
gl renderer: Ensure texture sizes arent 0

We already ceil() the given float texture sizes here, so if they are
valid, the result should definitely be > 0. Textures with size 0 can't
be properly used, especially not as render targets, where they will
trigger an assertion failure later in a glCheckFramebuffer call.

8 years agogl renderer: Fix inset and outset shadows in hidpi
Timm Bäder [Sat, 9 Dec 2017 08:41:52 +0000 (09:41 +0100)]
gl renderer: Fix inset and outset shadows in hidpi

8 years agogl renderer: Fix cairo node surface size in hidpi
Timm Bäder [Sat, 9 Dec 2017 08:25:47 +0000 (09:25 +0100)]
gl renderer: Fix cairo node surface size in hidpi

8 years agogl renderer: Fix rounded clips in hidpi
Timm Bäder [Sat, 9 Dec 2017 07:59:51 +0000 (08:59 +0100)]
gl renderer: Fix rounded clips in hidpi

8 years agogl renderer: Handle borders in hidpi better
Timm Bäder [Sat, 9 Dec 2017 07:57:13 +0000 (08:57 +0100)]
gl renderer: Handle borders in hidpi better

8 years agogl renderer: Default to 0px clip and border radius
Timm Bäder [Fri, 8 Dec 2017 21:19:52 +0000 (22:19 +0100)]
gl renderer: Default to 0px clip and border radius

Finally fix the division by 0 in the clip code.

8 years agogl renderer: Ignore render ops before we have a valid program
Timm Bäder [Fri, 8 Dec 2017 19:43:47 +0000 (20:43 +0100)]
gl renderer: Ignore render ops before we have a valid program

8 years agogl renderer: Try to fix border rendering
Timm Bäder [Fri, 8 Dec 2017 16:01:16 +0000 (17:01 +0100)]
gl renderer: Try to fix border rendering

8 years agogl renderer: Use one function per node-type
Timm Bäder [Fri, 8 Dec 2017 12:12:43 +0000 (13:12 +0100)]
gl renderer: Use one function per node-type

So a profiler can actually tell me what's slow and not just point at
_add_render_ops in all cases.

8 years agogl renderer: Don't render opacity nodes offscreen
Timm Bäder [Thu, 7 Dec 2017 16:30:02 +0000 (17:30 +0100)]
gl renderer: Don't render opacity nodes offscreen

We already drag a u_alpha uniform around in every shader, so use that
one.

8 years agotests: Add border drawing test
Timm Bäder [Wed, 6 Dec 2017 18:22:24 +0000 (19:22 +0100)]
tests: Add border drawing test

8 years agogl renderer: Fix shadow shader
Timm Bäder [Wed, 6 Dec 2017 16:24:58 +0000 (17:24 +0100)]
gl renderer: Fix shadow shader

We need to take the alpha of the shadow color into account as well.

8 years agogl renderer: Ignore shadow color matrix nodes...
Timm Bäder [Wed, 6 Dec 2017 15:45:43 +0000 (16:45 +0100)]
gl renderer: Ignore shadow color matrix nodes...

... if the color matrix nodes don't touch the child alpha.

8 years agogl renderer: Add a helper function
Timm Bäder [Wed, 6 Dec 2017 15:07:18 +0000 (16:07 +0100)]
gl renderer: Add a helper function

We'll use this for the common case of a color matrix node inside a
shadow node.

8 years agogl renderer: Don't zero initialize render ops GArray
Timm Bäder [Tue, 5 Dec 2017 17:05:12 +0000 (18:05 +0100)]
gl renderer: Don't zero initialize render ops GArray

8 years agogl renderer: Avoid crashing tooltips
Timm Bäder [Tue, 5 Dec 2017 16:49:25 +0000 (17:49 +0100)]
gl renderer: Avoid crashing tooltips

8 years agogl renderer: Sort border sides by color
Timm Bäder [Tue, 5 Dec 2017 12:46:29 +0000 (13:46 +0100)]
gl renderer: Sort border sides by color

8 years agogl renderer: Keep track of border program state
Timm Bäder [Tue, 5 Dec 2017 07:38:42 +0000 (08:38 +0100)]
gl renderer: Keep track of border program state

8 years agogl renderer: Avoid using a new modelview for shadow nodes
Timm Bäder [Tue, 5 Dec 2017 07:01:10 +0000 (08:01 +0100)]
gl renderer: Avoid using a new modelview for shadow nodes

We can just move the vertex data directly.

8 years agogl renderer: Default to GL_LINEAR scaling filters
Timm Bäder [Sun, 3 Dec 2017 21:14:33 +0000 (22:14 +0100)]
gl renderer: Default to GL_LINEAR scaling filters

8 years agogl renderer: Remove superfluous modelview matrix changes
Timm Bäder [Sun, 3 Dec 2017 19:16:01 +0000 (20:16 +0100)]
gl renderer: Remove superfluous modelview matrix changes

8 years agogl renderer: Remove unused struct member
Timm Bäder [Sun, 3 Dec 2017 18:47:20 +0000 (19:47 +0100)]
gl renderer: Remove unused struct member

8 years agogl renderer: Keep track of color matrix op state
Timm Bäder [Sun, 3 Dec 2017 18:15:33 +0000 (19:15 +0100)]
gl renderer: Keep track of color matrix op state

8 years agogl renderer: Avoid consecutive opacity ops
Timm Bäder [Sun, 3 Dec 2017 15:58:01 +0000 (16:58 +0100)]
gl renderer: Avoid consecutive opacity ops

8 years agogl renderer: Define debug structs inline
Timm Bäder [Sun, 3 Dec 2017 15:54:34 +0000 (16:54 +0100)]
gl renderer: Define debug structs inline

8 years agogl renderer: Add more detailed render op output
Timm Bäder [Sun, 3 Dec 2017 08:04:07 +0000 (09:04 +0100)]
gl renderer: Add more detailed render op output

8 years agogl renderer: Only draw blurred shadow nodes once
Timm Bäder [Sat, 2 Dec 2017 10:17:46 +0000 (11:17 +0100)]
gl renderer: Only draw blurred shadow nodes once

8 years agogl renderer: Remove consecutive clip ops
Timm Bäder [Sat, 2 Dec 2017 10:02:31 +0000 (11:02 +0100)]
gl renderer: Remove consecutive clip ops

8 years agogl renderer: Rename a macro
Timm Bäder [Fri, 1 Dec 2017 12:56:56 +0000 (13:56 +0100)]
gl renderer: Rename a macro